
<html>
<head>
    <title>学生信息编辑</title>
  <link rel="stylesheet" th:href="@{/css/plugins/layui/css/layui.css}">
</head>
<body>


    <div class="layui-form"  >

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">学号</label>
                <div class="layui-input-inline layui-input-wrap">
                    <input type="text" id="studentNum" name="studentNum"   class="layui-input ">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">学生名</label>
                <div class="layui-input-inline layui-input-wrap">
                    <input type="text" id="studentName" name="studentName"   class="layui-input ">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-inline layui-input-wrap">
                <input type="text" id="gender" name="gender" class="layui-input">
            </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">年龄</label>
                <div class="layui-input-inline layui-input-wrap">
                    <input type="text" id="age" name="age" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">生日</label>
               <div class="layui-input-inline layui-input-wrap">
                <input type="text" id="birthday" name="birthday"  class="layui-input">
               </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">电话</label>
                <div class="layui-input-inline layui-input-wrap">
                    <input type="text" id="phone" name="phone" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label">班级编号</label>
              <div class="layui-input-inline layui-input-wrap">
                <select id="classId" name="classId" th:with="classs=${@classService.getClassList()}">

                    <option value="">请选择</option>
                    <option th:each="classs:${classs}" th:text="${classs.className}" th:value="${classs.classId}"></option>
                </select>
              </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">年级编号</label>
                <div class="layui-input-inline layui-input-wrap">
                    <select id="gradeId" name="gradeId" th:with="grades=${@gradeService.getGradeList()}">

                        <option value="">请选择</option>
                        <option th:each="grade:${grades}" th:text="${grade.gradeName}" th:value="${grade.gradeId}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">宿舍编号</label>
                <div class="layui-input-inline layui-input-wrap">
                    <select id="dormId" name="dormId" th:with="dorms=${@dormService.getDormList()}">

                        <option value="">请选择</option>
                        <option th:each="dorm:${dorms}" th:text="${dorm.dormName}" th:value="${dorm.dormId}"></option>
                    </select>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">专业编号</label>
                <div class="layui-input-inline layui-input-wrap">
                    <select id="majorId" name="majorId" th:with="majors=${@majorService.getMajorList()}">

                        <option value="">请选择</option>
                        <option th:each="major:${majors}" th:text="${major.majorName}" th:value="${major.majorId}"></option>
                    </select>
                </div>
            </div>
        </div>

    </div>
    <script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/js/plugins/layui/layui.js}"></script>
<script>
    // 异步请求加载部门列表
    layui.use(function (){
        var $ = layui.$;
        var laydate = layui.laydate;
        var form = layui.form;
        laydate.render({
            elem: '#birthday',
            type: 'date'
        });
    })
</script>
</body>
</html>
